<?php if ($this->seriousError): ?>
	<div id="message">
		<h3>Błąd systemu</h3>
		<pre><?php 
			echo $this->error->exception. "\n";
			echo $this->error->type. "\n";
		?></pre>
	</div>
<?php else: ?>
	<?php if ($this->fail): ?>
		<h1><?=$this->header?$this->header:'Błąd!'?></h1>
		<?=$this->fail?>
	<?php endif; ?>
	<?php if ($this->links):
		echo '<ul>'; 
		foreach ($this->links as $link) {
			echo '<li><a href="'.$this->url($link[1], null, true).'">'.$link[0].'</a></li>';
		}
		echo '</ul>';
	endif; ?>
<?php endif; ?>